package com.siyue.hibernate.repository;

import com.siyue.hibernate.entity.Article;
import com.siyue.hibernate.vo.ArticleVO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface ArticleRepository extends JpaRepository<Article, Long>, JpaSpecificationExecutor<Article> {

    //返回部分数据
    ArticleVO findTitleById(Long id);
}
